package com.topfinance.cnaps2.dto;

import java.io.Serializable;
import java.sql.Timestamp;

import com.topfinance.frame.util.StringUtil;

public class TblTxTraceDto implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4034184123247340056L;
	private String txid;
	private String bgnOper;
	private String endOper;
	private Timestamp maxts;
	private Timestamp mints;
	private String paired = "N";
	
	public TblTxTraceDto() {
		super();
	}

	public TblTxTraceDto(String bgnOper, String endOper, Timestamp maxts, Timestamp mints) {
		super();
		this.bgnOper = bgnOper;
		this.endOper = endOper;
		this.maxts = maxts;
		this.mints = mints;
	}

	public TblTxTraceDto(String txid, String bgnOper, String endOper, Timestamp maxts, Timestamp mints) {
		super();
		this.txid = txid;
		this.bgnOper = bgnOper;
		this.endOper = endOper;
		this.maxts = maxts;
		this.mints = mints;
	}

	public String getTxid() {
		return txid;
	}

	public void setTxid(String txid) {
		this.txid = txid;
	}

	public String getBgnOper() {
		return bgnOper;
	}

	public void setBgnOper(String bgnOper) {
		this.bgnOper = bgnOper;
	}

	public String getEndOper() {
		return endOper;
	}

	public void setEndOper(String endOper) {
		this.endOper = endOper;
	}

	public String getMaxts() {
		return StringUtil.convertTimestamp(maxts);
	}

	public void setMaxts(Timestamp maxts) {
		this.maxts = maxts;
	}

	public String getMints() {
		return StringUtil.convertTimestamp(mints);
	}

	public void setMints(Timestamp mints) {
		this.mints = mints;
	}
	
	public Timestamp maxTs() {
		return maxts;
	}

	public String getPaired() {
		return paired;
	}

	public void setPaired(String paired) {
		this.paired = paired;
	}

}
